// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"

#ifdef __BORLANDC__
    #pragma hdrstop
#endif

// for all others, include the necessary headers (this file is usually all you
// need because it includes almost all "standard" wxWidgets headers)
#ifndef WX_PRECOMP
    #include "wx/wx.h"
#endif

#include "DListOfElements.h"
#include "frame.h"
#include "DHelpTools.h"
#include "sqlite\sqlite3.h"

DECLARE_APP(CMyApp)

enum
{
	Select_element
};

BEGIN_EVENT_TABLE(DListOfElements, wxListBox)
	EVT_LISTBOX(Select_element,  DListOfElements::OnSelectElement)
END_EVENT_TABLE()

DListOfElements::DListOfElements(wxWindow *parent): wxListBox(parent, wxID_ANY)
{
} 


DListOfElements::~DListOfElements(void)
{
}

void DListOfElements::OnSelectElement(wxCommandEvent &event)
{
	DElement *el = ((CMyFrame *)(wxGetApp().m_manFrame))->m_renderFrame->GetElement();
	wxString item = event.GetString();
	//
}
